﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AteckCsharp.Account
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["logout"] == "true")
            {
                string nextpage = "Guests/Login.aspx";

                Response.Write("<SCRIPT LANGUAGE=javascript>");
                Response.Write("{");
                Response.Write(" var Backlen=history.length;");
                Response.Write(" history.go(-Backlen);");
                Response.Write(" window.location.href='" + nextpage + "'; ");
                Response.Write("}");
                Response.Write("</SCRIPT>");
                
            }
        }
    }
}
